完美弹幕[弹].js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. globalThis.h_ost = 'http://111.229.140.167:8762/';
  2. globalThis.vod1 = function(t, pg) {
  3. let html1 = request(`${h_ost}apptov5/v1/vod/lists?type_id=${t}&area=&lang=&year=&order=time&type_name=&page=${pg}&pageSize=21`, {
  4. body: {},
  5. 'method': 'GET'
  6. }, true);
  7. return html1;
  8. };
  9. //
  10. globalThis.svod1 = function(ids) {
  11. let html1 = request(`${h_ost}apptov5/v1/vod/getVod?id=${ids}`, {
  12. body: {},
  13. 'method': 'GET'
  14. }, true);
  15. let bata = JSON.parse(html1).data;
  16. const data = {
  17. vod_id: ids,
  18. vod_name: bata.vod_name,
  19. vod_remarks: bata.vod_remarks,
  20. vod_actor: bata.vod_actor,
  21. vod_director: bata.vod_director,
  22. vod_content: bata.vod_content,
  23. vod_play_from: '',
  24. vod_play_url: ''
  25. };
  26. bata.vod_play_list.forEach((value, index) => {
  27. data.vod_play_from += value.player_info.show + '$$$';
  28. value.urls.forEach((v) => {
  29. data.vod_play_url += v.name + '$' + value.player_info.from + '|' + v.url + '#';
  30. });
  31. data.vod_play_url += '$$$';
  32. });
  33. return data;
  34. };
  35. //
  36. globalThis.ssvod1 = function(wd) {
  37. let html1 = request(h_ost + 'apptov5/v1/search/lists?wd=' + encodeURIComponent(wd) + '&page=1&type', {
  38. body: {},
  39. 'method': 'GET'
  40. }, true);
  41. return html1;
  42. };
  43. globalThis.jxx = function(bn, url) {
  44. let html1 = request('http://111.229.140.167:8762/apptov5/v2/parsing/proxy', {
  45. body: {
  46. 'play_url': url,
  47. 'key': bn
  48. },
  49. 'method': 'POST'
  50. }, true);
  51. return JSON.parse(html1).data.url;
  52. if ("" == '104847347') {
  53. return JSON.parse(html1).data.url;
  54. } else {
  55. return 'https://mp4.ziyuan.wang/view.php/3c120366111dde9c318be64962b5684f.mp4';
  56. }
  57. };
  58. var rule = {
  59. title: '完美[软]',
  60. host: '',
  61. //homeTid: '',
  62. //homeUrl: '/api.php/provide/vod/?ac=detail&t={{rule.homeTid}}',
  63. detailUrl: 'fyid',
  64. searchUrl: '**',
  65. url: 'fyclass',
  66. headers: {
  67. 'User-Agent': 'MOBILE_UA',
  68. },
  69. class_name: '电影&电视剧&综艺&动漫',
  70. class_url: '1&2&3&4',
  71. timeout: 5000,
  72. filterable: 1,
  73. limit: 20,
  74. multi: 1,
  75. searchable: 2,
  76. play_parse: true,
  77. parse_url: '',
  78. lazy: $js.toString(() => {
  79. const parts = input.split('|');
  80. let murl = jxx(parts[0], parts[1]);
  81. if (!murl.includes('http')) {
  82. input = {
  83. parse: 0,
  84. url: input,
  85. jx: 0,
  86. danmaku: 'http://dm.sds11.top/tdm.php?url=' + parts[1]
  87. };
  88. } else {
  89. input = {
  90. parse: 0,
  91. url: murl,
  92. jx: 0,
  93. danmaku: 'http://dm.sds11.top/tdm.php?url=' + parts[1]
  94. };
  95. }
  96. }),
  97. 推荐: $js.toString(() => {
  98. let bata = JSON.parse(vod1(1, 1)).data.data;
  99. console.log(input);
  100. bata.forEach(it => {
  101. d.push({
  102. url: it.vod_id,
  103. title: it.vod_name,
  104. img: it.vod_pic,
  105. desc: it.vod_remarks
  106. })
  107. });
  108. setResult(d)
  109. }),
  110. 一级: $js.toString(() => {
  111. let bata = JSON.parse(vod1(input, MY_PAGE)).data.data;
  112. console.log(input);
  113. bata.forEach(it => {
  114. d.push({
  115. url: it.vod_id,
  116. title: it.vod_name,
  117. img: it.vod_pic,
  118. desc: it.vod_remarks
  119. })
  120. });
  121. setResult(d)
  122. }),
  123. 二级: $js.toString(() => {
  124. VOD = svod1(input);
  125. }),
  126. 搜索: $js.toString(() => {
  127. //console.log(input);
  128. // console.log(ssvod1(input).data.data);
  129. let bata = JSON.parse(ssvod1(input)).data.data;
  130. console.log(bata);
  131. bata.forEach(it => {
  132. d.push({
  133. url: it.vod_id,
  134. title: it.vod_name,
  135. img: it.vod_pic,
  136. desc: it.vod_remarks
  137. })
  138. });
  139. setResult(d)
  140. }),
  141. }